﻿@{
	Layout = null;
}
@model CNDreams.Web.Areas.ModuleSys.Models.ModelSysCodeInfoIndex
<div class="common-table-container">
	<table class="common-table" id="common-table">
		<colgroup>
			<col width="40" />
			<col width="45" />
			<col width="45" />
			<col width="100" />
			<col width="220" />
			<col width="100" />
			<col width="220" />
		</colgroup>
		<thead>
			<tr>
				<th>
					<input type="checkbox" class="common-table-checkbox-all" />
				</th>
				<th colspan="2">
					操作
				</th>
				@Html.HiddenFor(x => x.SearchEntity._OrderName, new { data_order_name = "" })
				@Html.HiddenFor(x => x.SearchEntity._OrderDirection, new { data_order_direction = "" })
				@(Html.ThOrderHelper<CNDreams.Entity.SysCodeInfo>(x => x.Code, "代码"))
				@(Html.ThOrderHelper<CNDreams.Entity.SysCodeInfo>(x => x.Name, "名称"))
				@(Html.ThOrderHelper<CNDreams.Entity.SysCodeInfo>(x => x.SortOrder, "排序"))
				@(Html.ThOrderHelper<CNDreams.Entity.SysCodeInfo>(x => x.Memo, "备注"))
			</tr>
		</thead>
		<tbody>
			@foreach (var item in Model.SysCodeInfoCollection)
   {
				<tr ondblclick="javascript:show('@item.ID');">
					<td>
						@Html.CheckBox("checkboxItem", new { @class = "checkboxItem", value = item.ID })
					</td>
					<td>
						<a href="javascript:editSysCodeInfo('@item.ID')" class="a-edit" title="修改">&nbsp</a>
					</td>
					<td>
						<a href="javascript:deleteSysCodeInfo('@item.ID')" class="a-delete" title="删除">&nbsp</a>
					</td>
					<td title="@item.Code">
						@item.Code
					</td>
					<td title="@item.Name">
						@Project.Common.StringUtility.CutString(item.Name, 15)
					</td>
					<td title="@item.SortOrder">
						@item.SortOrder
					</td>
					<td title="@item.Memo">
						@Project.Common.StringUtility.CutString(item.Memo, 15)
					</td>
				</tr>
   }
		</tbody>
	</table>
</div>
@* 分页显示*@
<div>
	@{
		Html.RenderPartial("/Views/Controls/Paginate.cshtml", Model.PaginateHelperObject);
	}
</div>
